package net.lab1024.sa.admin.module.business.purchase.supplier.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.admin.module.business.purchase.supplier.constant.SupplierCreditRatingEnum;
import net.lab1024.sa.admin.module.business.purchase.supplier.constant.SupplierStatusEnum;
import net.lab1024.sa.admin.module.business.purchase.supplier.constant.SupplierTypeEnum;
import net.lab1024.sa.base.common.swagger.SchemaEnum;

import java.time.LocalDateTime;

/**
 * 供应商视图对象
 *
 * @Author 1024创新实验室
 * @Date 2024/07/19 20:30:00
 * @Wechat zhuoda1024
 * @Email lab1024@163.com
 * @Copyright <a href="https://1024lab.net">1024创新实验室</a>
 */
@Data
public class SupplierVO {

    @Schema(description = "供应商ID")
    private Long supplierId;

    @Schema(description = "供应商编码")
    private String supplierCode;

    @Schema(description = "供应商名称")
    private String supplierName;

    @SchemaEnum(desc = "供应商类型", value = SupplierTypeEnum.class)
    private Integer supplierType;

    @Schema(description = "供应商类型描述")
    private String supplierTypeDesc;

    @Schema(description = "联系人")
    private String contactPerson;

    @Schema(description = "联系电话")
    private String contactPhone;

    @Schema(description = "联系邮箱")
    private String contactEmail;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "营业执照号")
    private String businessLicense;

    @Schema(description = "纳税人识别号")
    private String taxNumber;

    @Schema(description = "银行账号")
    private String bankAccount;

    @Schema(description = "开户银行")
    private String bankName;

    @SchemaEnum(desc = "信用等级", value = SupplierCreditRatingEnum.class)
    private String creditRating;

    @Schema(description = "信用等级描述")
    private String creditRatingDesc;

    @SchemaEnum(desc = "状态", value = SupplierStatusEnum.class)
    private Integer status;

    @Schema(description = "状态描述")
    private String statusDesc;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建人ID")
    private Long createUserId;

    @Schema(description = "创建人姓名")
    private String createUserName;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人ID")
    private Long updateUserId;

    @Schema(description = "更新人姓名")
    private String updateUserName;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}